package org.bling.star.server.service;

import org.bling.star.common.command.*;
import org.bling.star.common.model.StreamMessage;
import org.bling.star.server.connect.node.InstanceConnection;

public interface ConnectDealService {
    //创建聊天室
    StreamMessage createTalkingPool(CreateCommand createCommand, InstanceConnection connect);
    //加入聊天室
    Boolean join(JoinCommand joinCommand, InstanceConnection connect);
    //聊天室发言
    Boolean talking(TalkingCommand clientCommand, InstanceConnection connect);
    //退出聊天室
    Boolean exit(ExitCommand clientCommand, InstanceConnection connect);
    //断开连接
    Boolean disconnect(DisConnectCommand clientCommand, InstanceConnection connect);
}
